cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibTimeutils REQUIRED)
include_directories(${LibTimeutils_INCLUDE_DIRS})
set(LIBS ${LibTimeutils_LIBRARIES})

find_package(LibGenutils REQUIRED)
include_directories(${LibGenutils_INCLUDE_DIRS})
list(APPEND LIBS ${LibGenutils_LIBRARIES})

find_package(HDF4 REQUIRED)
include_directories(${HDF4_INCLUDE_DIRS})
list(APPEND LIBS ${HDF4_LIBRARIES})

add_executable(l1asubset_modis
  l1asubset_modis.c
)

target_link_libraries(l1asubset_modis
  ${LIBS}
)

install (TARGETS l1asubset_modis DESTINATION bin)
